package model

import (
	"gorm.io/gorm"
	"time"
)

type Vies struct {
	Id        uint           `gorm:"column:id;type:bigint(20) UNSIGNED;primaryKey;not null;" json:"id"`
	Video     string         `gorm:"column:video;type:varchar(255);not null;" json:"video"`
	Status    int64          `gorm:"column:status;type:bigint(3);comment:1:未发布 2:已发布 3:私有 ;not null;default:1;" json:"status"` // 1:未发布 2:已发布 3:私有
	Desc      string         `gorm:"column:desc;type:varchar(50);not null;" json:"desc"`
	CreatedAt time.Time      `gorm:"column:created_at;type:datetime(6);not null;" json:"created_at"`
	UpdatedAt time.Time      `gorm:"column:updated_at;type:datetime(6);not null;" json:"updated_at"`
	DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(6);default:NULL;" json:"deleted_at"`
}

func (v *Vies) TableName() string {
	return "vies"
}
